import request from '@/utils/request'

// 查询电基础信息列表
export function listElectricityBase(data) {
  return request({
    url: '/idss/electricityBase/list',
    method: 'post',
    data: data
  })
}

// 查询电基础信息详细
export function getElectricityBase(id) {
  return request({
    url: '/idss/electricityBase/' + id,
    method: 'get'
  })
}

// 新增电基础信息
export function addElectricityBase(data) {
  return request({
    url: '/idss/electricityBase',
    method: 'post',
    data: data
  })
}

// 修改电基础信息
export function updateElectricityBase(data) {
  return request({
    url: '/idss/electricityBase',
    method: 'put',
    data: data
  })
}

// 删除电基础信息
export function delElectricityBase(id) {
  return request({
    url: '/idss/electricityBase/' + id,
    method: 'delete'
  })
}

// 导出电基础信息
export function exportElectricityBase(query) {
  return request({
    url: '/idss/electricityBase/export',
    method: 'get',
    params: query
  })
}
